*********************************************************************************
*Replication code for figures in LaPira and Thomas (2020)
*Requires sparkline package to be installed in Stata
*********************************************************************************

*edit below to set local directory of data:
cd "[folderpath]"

clear
use lda25_replication_data.dta

sparkline registrant_count amount_num_adjusted_inbillions client_count lobbying_count year, variablelabels extremes extremeslabel /// 
      xtitle("Year") xline(2007.5, lpattern(dot) lcolor(gs5)) aspect(1.5) xlabel(1998(4)2018, angle(45))
	  
sparkline specificissue_count_mean_r issue_count_mean_r agency_per_client_mean_r lobbyist_count_mean_r year, variablelabels extremes extremeslabel /// 
      xtitle("Year") xline(2007.5, lpattern(dash) lcolor(gs5)) aspect(3) xlabel(1998(4)2018, angle(45))

sparkline uniq_specificissue_pcm_r uniq_issue_count_pcm_r uniq_agency_per_client_pcm_r uniq_lobbyist_count_pcm_r year, variablelabels extremes extremeslabel /// 
      xtitle("Year") xline(2007.5, lpattern(dash) lcolor(gs5)) aspect(3) xlabel(1998(4)2018, angle(45))




